package com.wanmait.baohan.job;

import com.wanmait.baohan.service.DailyPlanService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/***
 * 王森明
 *
 */
@Component
public class DailyPlanJob {
    @Resource
    private DailyPlanService dailyPlanService;

    //每晚更新计划
    @Scheduled(cron = "* * 1 * * ? ")
    public void run()
    {
        dailyPlanService.changeEnable();

    }
}
